package com.lzx.service.zjwd.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.lzx.mapper.zjwd.NztjMapper;
import com.lzx.mapper.zjwd.ZjwdMapper;
import com.lzx.model.zjwd.Nztj;
import com.lzx.model.zjwd.Zjwd;
import com.lzx.service.zjwd.NztjService;
import com.lzx.service.zjwd.ZjwdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service("nztjService")
public class NztjServiceImpl extends ServiceImpl<NztjMapper,Nztj> implements NztjService {
    @Autowired
    private NztjMapper nztjMapper;

    @Override
    public List<Nztj> queryList(Nztj demo){
        return nztjMapper.selectList(new EntityWrapper<Nztj>());
    }

    @Override
    public List<Nztj> selectdemolist( ){
        try {
            return nztjMapper.selectdemolist();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public Nztj selectdemobyid(String id){
        try {
            return nztjMapper.selectdemobyid(id);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
